package com.zj.utils.utils.islogin;

import android.annotation.SuppressLint;
import android.content.Context;

import com.zj.utils.utils.utilcode.SPUtils;


/**
 * @author jiang zhu on 2019/4/19
 */
public class AopUtil {

    private Context context;

    @SuppressLint("StaticFieldLeak")
    private static AopUtil instance;

    /**
     * 是否登录
     */
    public boolean isLogin(){
        return SPUtils.getInstance().getBoolean("isLogin");
        //return true;
    }

    private AopUtil(Context context) {
        this.context = context;
    }

    public static void init(Context context) {
        instance = new AopUtil(context);
    }

    public static AopUtil getInstance() {
        return instance;
    }

    public Context getContext() {
        return context;
    }

}
